package ambika.inheritance1;

public class Vehicle {
	public Vehicle(){
		
	}
	public Vehicle(int numOfWheels, String color){
			
			this.color = color; 
		}
		public static final int numOfWheels = 4;
		public int getNumOfWheels() {
			return numOfWheels;
		}
		
		public String getColor() {
			return color;
		}
		public void setColor(String color) {
			this.color = color;
		}
		public String color = "";
		
		public int getMileage(int miles, int gallons){
			int mileage = miles/gallons;
			return mileage;
		}
		
		public void getMessage(){
			System.out.println("Many on-road vehicles pollute the atmosphere by producing carbon monoxides and nitrogen oxides.");
		}
}
